package controller_service_dao;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class DButil {
    public static List<RoleEntity> roles = new ArrayList<>();   //    ArrayList可以动态调整大小
    //静态代码块，执行在：加载阶段
    static{
        Collections.addAll(roles,
                new RoleEntity(1L, "董事长", "CEO", "董事会", "1", 1),
                new RoleEntity(2L, "总经理", "GM", "董事会", "1", 1),
                new RoleEntity(3L, "财务", "FINANCE", "董事会", "1", 1),
                new RoleEntity(4L, "人事", "HR", "董事会", "1", 1),
                new RoleEntity(5L, "部门经理", "DEPT_MANAGER", "部门", "2", 1),
                new RoleEntity(6L, "员工", "EMPLOYEE", "部门", "3", 1)
                );
    }
}
